#ifndef JSON_PAR_H
#define JSON_PAR_H

typedef struct {
    int source;
    int destination;
    int type;
    char *cmd;
    size_t cmd_len;
} JsonData;

typedef struct {
    int source;
    int destination;
    int type;
    char *cmd;
} DataPacket;


int parse_json(const char *json_string,JsonData *json_struct);
char* createAndPackageJsonData(int source, int destination, int type, int *dataArray, size_t arraySize);
#endif /* JSON_PARSER_H */
